package com.example.chessbattleplatform.web.Sys_User.Pojo.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateEmailRequest {

    @Email(message = "邮箱格式不正确")
    private String oldEmail;

    @Email(message = "邮箱格式不正确")
    private String newEmail;
}
